package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.entity.MacImg;
import com.woniuxy.company5.mapper.MacImgMapper;
import com.woniuxy.company5.service.MacImgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MacImgServiceImpl implements MacImgService {
    @Resource
    private MacImgMapper macImgMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insertSelectivel(String img1) {
        MacImg macImg = new MacImg();
        macImg.setImg1(img1);
        macImgMapper.insertSelective(macImg);
        return macImg.getId();
    }

    @Override
    public int insert(MacImg record) {
        return 0;
    }

    @Override
    public int insertSelective(MacImg record) {
        return macImgMapper.insertSelective(record);
    }

    @Override
    public MacImg selectByPrimaryKey(Long id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(MacImg record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(MacImg record) {
        return 0;
    }
}
